package com.blue.http.controller;

import org.hibernate.validator.constraints.NotBlank;

import com.blue.validation.group.SaveModel;

public class Account
{
	@NotBlank(groups={SaveModel.class}, message="用户名不能为空")
	private String name;
	@NotBlank(groups={SaveModel.class}, message="密码不能为空")
	private String password;

	public Account()
	{
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}
}
